mate_age_ARR1 = age_ARR,
mate_age_ARR2 = age_ARR,
mate_heigh_ARR1 = heigh_ARR,
mate_heigh_ARR2 = heigh_ARR,
mate_weigh_ARR1 = weigh_ARR,
mate_weigh_ARR2 = weigh_ARR,
mate_pay_ARR = pay_ARR,
mate_edu_ARR = edu_ARR,
mate_love_ARR = love_ARR,
mate_job_ARR = job_ARR,
mate_house_ARR = house_ARR,
mate_child_ARR = child_ARR,
mate_marrytime_ARR = marrytime_ARR,
mate_companykind_ARR = companykind_ARR,
mate_smoking_ARR = smoking_ARR,
mate_drink_ARR = drink_ARR,
mate_car_ARR = car_ARR;
var mate_areaARR1=areaARR1,mate_areaARR2=areaARR2,mate_areaARR3=areaARR3;
var selstr2='不限';
var bx = [{'i':'0','v':selstr2}];
//var mate_love_ARR = bx.concat(love_ARR);
//var mate_house_ARR = bx.concat(house_ARR);
/*var mate_areaARR1,mate_areaARR2,mate_areaARR3;*/
var defarea1=areaARR1[0].i;
var defarea2=areaARRhj1[0].i;
(function aeraPushBx(){
	var newA1 = [{'i':'ZE0000','v':selstr2,f:0}];
	var newA2 = [];
	var newA3 = [];
	mate_areaARR1=newA1.concat(areaARR1);
	function newA2fn(){
		for(var k=0;k<areaARR1.length;k++){newA2.push({'i':'AI'+k+'00','v':selstr2,f:mate_areaARR1[k].i});}
		return newA2;
	}
	function newA3fn(){
		for(var k=0;k<areaARR2.length;k++) {newA3.push({'i':'CN00'+k,'v':selstr2,f:mate_areaARR2[k].i});}
		return newA3;
	}
	mate_areaARR2=newA2fn().concat(areaARR2);
	mate_areaARR3=newA3fn().concat(areaARR3);
})();
var mate_areaARRhj1=areaARRhj1,mate_areaARRhj2=areaARRhj2,mate_areaARRhj3=areaARRhj3;
(function aerahjPushBx(){
	var newA1 = [{'i':'ZE0000','v':selstr2,f:0}];
	var newA2 = [];
	var newA3 = [];
	mate_areaARRhj1=newA1.concat(areaARRhj1);
	function newA2fn(){
		for(var k=0;k<areaARRhj1.length;k++){newA2.push({'i':'AI'+k+'00','v':selstr2,f:mate_areaARRhj1[k].i});}
		return newA2;
	}
	function newA3fn(){
		for(var k=0;k<areaARRhj2.length;k++) {newA3.push({'i':'CN00'+k,'v':selstr2,f:mate_areaARRhj2[k].i});}
		return newA3;
	}
	mate_areaARRhj2=newA2fn().concat(areaARRhj2);
	mate_areaARRhj3=newA3fn().concat(areaARRhj3);
})();



/***********************/
var url='reg_alone';
function agreeDeclara(){zeai.mask({son:reg_private,cancelBubble:'off',click:'no',closeid:agree,close:function(){
	zeai.mask({son:MobMaskWin,cancelBubble:'off',click:'no'});
}});}

/*yzm*/
function verifyFn(yzmbtn){
	if (zeai.ifmob(o('mob').value)){
		if (!yzmbtn.hasClass('disabled')){ajax_click_yzmFn();}
	}else{
		zeai.msg('请输入手机号码');return false;
	}
}
function ajax_click_yzmFn(){
	zeai.ajax({url:url+zeai.ajxext+'submitok=ajax_click_yzm'},function(e){var rs=zeai.jsoneval(e);
		zeai_yzm_em.style.backgroundColor=rs.bg;
		//zeai_yzm.style.color=rs.bg;
		zeai_yzm_li.html(rs.li);
		zeai.mask({son:zeai_yzm,maskcls:'mask_TRnav'});
		zeai.listEach(zeai.tag(zeai_yzm_li,'li'),function(obj){
			obj.onclick=function(){zeai_yzm_liFn(rs.bg,this.innerHTML);};
		});

	});
}
function zeai_yzm_liFn(bg,v){
	zeai.ajax({url:url+zeai.ajxext+'submitok=ajax_click_yzm_chk',data:{bg:bg,v:v}},function(e){rs=zeai.jsoneval(e);
		zeai.msg(0);//zeai.msg(rs.msg);
		if(rs.flag==1){
			zeai_yzm.hide();
			setTimeout(function(){
				if (!yzmbtn.hasClass('disabled')){
					yzmbtn.addClass('disabled');
					zeai.ajax({url:url+zeai.extname,data:{'submitok':'ajax_reg_verify',mob:o('mob').value,bg:bg,v:v}},function(e){
						var rs=zeai.jsoneval(e);
						zeai.msg(0);
						if (rs.flag == 1){
							zeai.msg(rs.msg,{time:5});o('verify').value='';yzmtimeFn2(120);
						}else{
							zeai.msg(rs.msg);yzmbtn.removeClass('disabled');
						}
						Mzeai_yzm.click();
					});
				}
			},200);			
		}else{
			zeai.msg(rs.msg);
			setTimeout(function(){ajax_click_yzmFn();},1000);
		}
	});
}
function yzmtimeFn2(countdown){
	var yzmbtn=o('yzmbtn');
	if (countdown == 0) {
		yzmbtn.removeClass('disabled');yzmbtn.html('<font>重新获取</font>');return false;
	} else { 
		yzmbtn.addClass('disabled');yzmbtn.html("重新发送<b>"+countdown+"s</b>");countdown--; 
	} 
	cleandsj=setTimeout(function(){yzmtimeFn2(countdown)},1000);
}

function regbtnFn(){
	var subscribeV = o('subscribe').value;
	if(reg_kind==2){
		var unameV = o('uname').value;
		var pwdV   = o('pwd').value;
		if(zeai.str_len(unameV) < 3 || zeai.str_len(unameV)>15){zeai.msg('请输入登录用户名(必须为3-15字符长度)',o('uname'));return false;}
		if(zeai.str_len(pwdV)<6 || zeai.str_len(pwdV)>20){zeai.msg('请输入登录密码(必须为6-20字符长度)',o('pwd'));return false;}
	}else{	
		var mobV = o('mob').value,verifyV=o('verify').value;
		if(!zeai.ifmob(mobV)){zeai.msg('请输入正确手机号',o('mob'));return false;}
		if(!zeai.ifint(verifyV)){zeai.msg('请输入手机验证码',o('verify'));return false;}
	}
	zeai.ajax({url:url+zeai.extname,js:1,form:MobMaskWin},function (e){var rs=zeai.jsoneval(e);
		if (rs.flag==1){
			if(reg_kind==1)clearTimeout(cleandsj);
			var Mid = o('MMobMaskWin');
			Mid.removeClass('alpha0_100');Mid.addClass('alpha100_0');
			setTimeout(function(){Mid.remove();},400);
			setTimeout(function(){step.children[1].addClass('ed');btn_save.html('下一步<font>(2/3)');},1000);
		}else{
			zeai.msg(0);zeai.msg(rs.msg,{time:4});
		}
	});
}
function submitCut_success_callback(rs) {
	o(photo_s).html('<img src="'+up2+rs._s.replace('_s.','_m.')+'"><h5 class="ed"><i class="ico">&#xe691;</i> 重新上传</h5>');
	o('photo_sid').value = rs._s;
	$("#submit_cut2").find("img").hide();
	setTimeout(function(){$("#cut_tmppic").removeClass("dis_submit");cut_cancel.click();div_up_close.click();},2000);
}
function reg_alone_init(){
	zeai.listEach(zeai.tag(o('z-e-a-i__c-n'),'dl'),function(obj){
		var kind='',className=obj.className.replace(' dl0','');
		switch (className){
			case 'aread':
				o('areaid').onclick=function(){
					ZeaiM.div_up({obj:areabox,h:36});
					ZEAI_area({areaid:o('form_areaid').value,areatitle:o('form_areatitle').value,ul:areabox.children[0],str:'job',end:function(z,e){
						o('areatitle').html(e);o('areatitle').class('ed');
						o('form_areaid').value=z;
						o('form_areatitle').value=e;
					}});
				}
			break;
			case 'aread2':
				o('area2id').onclick=function(){
					ZeaiM.div_up({obj:areabox2,h:36});
					ZEAI_area({areaid:o('form_area2id').value,areatitle:o('form_area2title').value,ul:areabox2.children[0],str:'hj',datastr:'hj',end:function(z,e){
						o('area2title').html(e);o('area2title').class('ed');
						o('form_area2id').value=z;
						o('form_area2title').value=e;
					}});
				}
			break;
			//择偶
			case 'mate_aread':
				o('mate_areaid').onclick=function(){
					ZeaiM.div_up({obj:mate_areabox,h:36});
					ZEAI_area({bx:true,areaid:o('form_mate_areaid').value,areatitle:o('form_mate_areatitle').value,ul:mate_areabox.children[0],str:'mate_job',end:function(z,e){
						o('mate_areatitle').html(e);o('mate_areatitle').class('ed');
						o('form_mate_areaid').value=z;
						o('form_mate_areatitle').value=e;
					}});
				}
			break;
			case 'mate_aread2':
				o('mate_areaid2').onclick=function(){
					ZeaiM.div_up({obj:mate_areabox2,h:36});
					ZEAI_area({bx:true,areaid:o('form_mate_areaid2').value,areatitle:o('form_mate_areatitle2').value,ul:mate_areabox2.children[0],str:'mate_hj',datastr:'mate_hj',end:function(z,e){
						o('mate_area2title').html(e);o('mate_area2title').class('ed');
						o('form_mate_areaid2').value=z;
						o('form_mate_areatitle2').value=e;
					}});
				}
			break;
			default:
				switch (className) {
					case 'ipt':kind = 'input';break;
					case 'txtarea':kind = 'textarea';break;
					case 'bthdy':kind = 'birthday';break;
					case 'slect':kind = 'select';break;
					case 'rang':kind = 'range';break;
					case 'chckbox':kind = 'checkbox';break;
				}
				if(!zeai.empty(kind)){ZeaiM.divMod({kind:kind,obj:obj,end:function(e,i){o('form_'+obj.id).value=e;}});}
			break;
		}
	});
	btn_save.onclick=function(){
		zeai.ajax({url:url+zeai.extname,form:o('z-e-a-i__c-n')},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(0);zeai.msg(rs.msg);
			if(rs.flag==1)setTimeout(function(){location.reload(true);},1000);
		});
	}
}